{temp('html/recruit/pc/head')}
</head>
<body>
	<!--容器-->
	{temp('html/recruit/pc/firm/head')}
		<!--头部结束-->

		<!--主体内容-->
		<div class="w_bai dis_inline t_m10 t_c">
			<!--详细-->
			<div class="w_1100 auto_0">
				<!--左侧-->
				<div class="w_286 f_l c_656565 bc_FFF bor_C6 xddw" style="margin-top:-61px">
					<!--右阴影图片-->
					<div class="f_r xddw" style="margin-right:-38px;margin-top:-1px">
						<img src="{$style}/images/yinying_you2.png">
					</div>
					<!--右阴影图片结束-->
					<!--标题-->
					<div class="h_50 l_h50 f_s18 bc_127ABF c_FFF t_l">
						<span class="l_m20">基本信息</span>
					</div>
					<!--标题结束-->
					<!--列表-->
					<div id="geren_zuo">
						<ul>
							<li id="list">
								<div class="f_l ziliao2"></div>
								<div class="dis_inline l_m10">
									<a href="{$_url}/?act=firm&met=qy_base">完善资料</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>

							<li id="list2">
								<div class="f_l qy_logo"></div>
								<div class="dis_inline l_m10">
									<a href="{$_url}/?act=firm&met=logo">上传企业Logo</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>

							<li id="list2">
								<div class="f_l xiupwd"></div>
								<div class="dis_inline l_m14">
									<a href="{$_url}/?act=firm&met=mmxg">修改密码</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>

							<li id="list2">
								<div class="f_l ren t_m2"></div>
								<div class="dis_inline l_m12">
									<a href="{$_url}/?act=firm&met=zdzj">指定企业专家</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>		
						</ul>
					</div>
					<!--列表结束-->
				</div>
				<!--左侧结束-->
				<!--右侧-->
				<div class="w_804 l_m5 f_r bc_FFF bor_C6 t_l">
					<!--标题-->
					<div class="t_m15 l_m20">
						<span class="f_s20 c_323131">完善资料</span>
						<span class="c_7D7D7D">(请认真填写企业资料，保证信息的准确和完整)</span>
					</div>
					<!--标题结束-->
					<!--分割线-->
					<div class="bor_C6 bor_di_none t_m10"></div>
					<!--分割线结束-->
					<!--基本信息-->
					<div class="w_bai t_m25">
						<!--图标及提示字-->
						<div class="w_bai dis_inline">
							<div class="geren f_l t_m3 l_m20"></div>
							<div class="f_l l_m5 f_s18 c_323131">基本信息（*为必填项）</div>
						</div>
						<!--图标及提示字结束-->
						{if(@$user)}
						<!--内容-->
						<div class="t_m15 l_m40 dis_inline">
							<!--企业名称-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l l_m25">
									<span class="c_FF4700" style="margin-left:10.5px;"></span>
									<span class="c_656565">企业名称</span>
								</div>
								<div class="f_l c_656565" style="margin-left:10px!important;margin-left:20px">
									{$user['qy_name']}
								</div>
							</div>
							<!--企业名称结束-->
							<!--注册资金-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="c_FF4700" style="margin-left:10.5px;"></span>
									<span class="c_656565">注册资金</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" id="zczj" name="zczj" value="{$user['zczj']}" class="inp_msg" placeholder="10000000000" />
								</div>
							</div>
							<!--注册资金结束-->
							<!--行业类别-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">行业类别</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh355">
										<div class="select-inner">
											<select class="select-h" id="sshy">
												<option>请选择</option>
											{if(@$hy)}
											{foreach($hy as $k=>$v)}
												<option {if($user['sshy'] == $v['id'])}selected="selected"{/if} value="{$v['id']}">{$v['name']}</option>
											{/foreach}
											{/if}
											</select>
										</div>
									</div>
								</div>
							</div>
							<!--行业类别结束-->
							<!--企业性质-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">企业性质</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh200">
										<div class="select-inner">
											<select class="select-h" id="qyxz" name="qyxz">
												<option selected="selected">请选择</option>
												{if(@$ss)}
												{foreach($ss as $k=>$v)}
												<option {if($v == $user['qyxz'])}selected="selected"{/if}>{$v}</option>
												{/foreach}
												{/if}
											</select>
										</div>
									</div>
								</div>
							</div>
							<!--企业性质结束-->
							<!--企业规模-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">企业规模</span>
								</div>
								<div class="f_l l_m10">
									<input class="inp_msg f_l" style="width: 50px;" type="text" name="qygm" value="{$user['qygm']}" />
									<span class="f_l t_m8 l_m5">人</span>
								</div>
							</div>
							<!--企业规模结束-->
							<!--成立时间-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">成立时间</span>
								</div>
								<div class="f_l l_m10">
									<input class="Wdate" type="text" id="d17" name="cltime" value="{if(@$user['cltime'])}{prt(date('Y-m-d',$user['cltime']))}{/if}"
                            onfocus="WdatePicker({firstDayOfWeek:0,isShowClear:false,isShowOK:false,isShowToday:false})"/>
								</div>
							</div>
							<!--成立时间结束-->
							<!--企业简介-->
							<div class="w_bai t_m15 dis_inline" style="margin-left:10.5px;">
								<div class="f_l t_m8 l_m25 c_656565">企业简介</div>
								<div class="f_l l_m10">
									<textarea rows="3" cols="20" id="qyjj">{$user['qyjj']}</textarea>
									<span class="dis_block t_m5 f_s12 c_656565" style="margin-left:2px!important;margin-left:12px">
										请输入50字以上的详细公司介绍（如：公司主营业务、公司环境、公司文化等）
									</span>
								</div>
							</div>
							<!--自我评价结束-->
						</div>
						{/if}
						<!--内容结束-->
					</div>
					<!--基本信息结束-->
					<!--联系方式-->
					<div class="w_bai t_m25">
						<!--图标及提示字-->
						<div class="w_bai dis_inline">
							<div class="lianxi f_l t_m5 l_m20"></div>
							<div class="f_l l_m5 f_s18 c_323131">联系方式</div>
						</div>
						<!--图标及提示字结束-->
						<!--内容-->
						<div class="t_m15 l_m40 dis_inline">
							<!--联系人-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m39" style="_margin-left:32px">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">联系人</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" name="linkman" value="{$user['linkman']}" />
								</div>
							</div>
							<!--联系人结束-->
							<!--手机号码-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">手机号码</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" name="phone" value="{$user['phone']}" />
								</div>
							</div>
							<!--手机号码结束-->
							<!--座机电话-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="c_FF4700" style="margin-left:10.5px;"></span>
									<span class="c_656565">座机电话</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" class="inp_msg" id="gddh" value="{$user['gddh']}" />
								</div>
							</div>
							<!--座机电话结束-->
							<!--电子邮件-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">电子邮件</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" name="email" value="{$user['email']}" class="inp_msg" />
								</div>
							</div>
							<!--电子邮件结束-->
							<!--通讯地址-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m25">
									<span class="f_l c_FF4700" style="margin-right:5px;">*</span>
									<span class="c_656565">通讯地址</span>
								</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px">
									<div class="select-outer select-wh95 f_l">
										<div class="select-inner">
											<select id="sheng" name="sheng" onChange="gbdz(this.value,'shi','qu')"  class="select-h">
												<option value="0">请选择</option>
												{if(@$sh)}
												{foreach($sh as $k=>$v)}
													<option {if($v['area_id'] == $user['sheng'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
												{/foreach}
												{/if}
											</select>
										</div>
									</div>
									<div class="select-outer select-wh95 f_l l_m5">
										<div class="select-inner">
											<select id="shi" name="shi"  onchange="gbdz(this.value,'qu','')" class="select-h">
												<option value="0">请选择</option>
												{if(@$shi)}
												{foreach($shi as $k=>$v)}
												<option {if(@$user['shi'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
												{/foreach}
												{/if}
											</select>
										</div>
									</div>
									<div class="select-outer select-wh95 f_l l_m5">
										<div class="select-inner">
											<select id="qu" name="qu" class="select-h">
												<option value="0">请选择</option>
												{if(@$qu)}
												{foreach($qu as $k=>$v)}
												<option {if(@$user['qu'] == $v['area_id'])}selected="selected"{/if} value="{$v['area_id']}">{$v['area_name']}</option>
												{/foreach}
												{/if}
											</select>
										</div>
									</div>
								</div>
								<script>
									function gbdz(id,nn,cc){//改变地址
										$.post('{$_url}/?act=get_diqu',{id:id},function(data){
											$("#"+nn).html(data);
											if(cc != ''){
												$("#"+cc).html('<option value="0">请选择</option>');
											}
										});
									}
								</script>
							</div>
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l w_80" style="margin-left:11px;">&nbsp;</div>
								<div class="f_l" style="margin-left:10px!important;margin-left:20px;_margin-left:47px">
								<input type="hidden" id="id" value="{$id}">
									<input type="text" class="inp_msg w_355" name="address" value="{$user['address']}" />
								</div>
							</div>
							<!--通讯地址结束-->
							<!--网址-->
							<div class="w_bai t_m15 dis_inline">
								<div class="f_l t_m8 l_m45">
									<span style="margin-left:10.5px;"></span>
									<span class="c_656565">&nbsp;&nbsp;网址</span>
								</div>
								<div class="f_l l_m10">
									<input type="text" id="url" value="{$user['url']}" class="inp_msg w_355" />
								</div>
							</div>
							<!--网址结束-->
						</div>
						<!--内容结束-->
						<!--确认按钮-->
						<div class="w_bai t_m40 b_m50 dis_inline">
							<div class="f_l w_120">&nbsp;</div>
							<div class="f_l w_200 h_35 l_h35 bc_E16400 c_FFF t_c point" onClick="xiugai()" 
								style="margin-left:11px!important;margin-left:21px;_margin-left:46px">
								保存企业信息
							</div>
						</div>
						<!--确认按钮结束-->
					</div>
					<!--联系方式结束-->
				</div>
				<script type="text/javascript">
        	function xiugai(){
        		var sshy = $("#sshy").val();
        		if(sshy == ''){ alert('请选择所属行业!');return;}
        		var qyxz = $("#qyxz option:selected").val();
        		if(qyxz == ''){ alert('请选择企业性质!');return;}
        		var sheng = $("#sheng option:selected").val(); 
        		if(sheng == ''){ alert('请选择公司所在地!');return;}
        		var shi = $("#shi option:selected").val(); 
        		if(shi == ''){ alert('请选择公司所在地!');return;}
        		var qu = $("#qu option:selected").val(); 
        		if(qu == ''){ alert('请选择公司所在地!');return;}
        		var linkman = $("input[name='linkman']").val();
        		if(linkman == ''){ alert('请填写联系人!');return;}
        		var phone = $("input[name='phone']").val();
        		if(phone == ''){ alert('请填写联系方式!');return;}
        		var address = $("input[name='address']").val();
        		if(address == ''){ alert('请填写联系地址!');return;}
        		var email = $("input[name='email']").val();
        		if(email == ''){ alert('请填写联系方式邮箱!');return;}
        		var zzjg = $("input[name='zzjg']").val();
        		if(zzjg == ''){ alert('请填写组织机构!');return;}
        		var qygm = $("input[name='qygm']").val();
        		if(qygm == ''){ alert('请填企业规模!');return;}
        		var cltime = $("input[name='cltime']").val();
        		if(cltime == ''){ alert('请填企业成立时间!');return;}
        		var id = $("#id").val();
        		if(id == ''){alert('非法操作!');return;}
        		var zczj = $("#zczj").val();
        		var gddh = $("#gddh").val();
        		var url = $("#url").val();
        		var qyjj = $("#qyjj").val();
        		$.post('{$_url}/?act=firm&met=qybj',{id:id,sshy:sshy,qyxz:qyxz,sheng:sheng,shi:shi,qu:qu,zczj:zczj,
        			linkman:linkman,phone:phone,address:address,email:email,qygm:qygm,cltime:cltime,gddh:gddh,url:url,qyjj:qyjj},function(data){
         				if(data == '修改成功!'){
         					top.location.href="{$_url}/?act=firm&met=qy_base";
         				}else{
         					alert(data);
         				}
        				});
        	}
        </script>
				<!--右侧结束-->
			</div>
			<!--详细结束-->
		</div>
		<!--主体内容结束-->
{temp('html/recruit/pc/foot')}